﻿using System;
using System.Windows.Data;
using System.Windows.Input;

namespace HobSoft.SoccerBet2014.Common.Wpf.Converter
{
    public class CommandHashConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var cmd = value as ICommand;
            if (cmd != null)
                return cmd.GetHashCode();
            return string.Empty;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
